interface constType {
  STATE: object;
}
class CONST implements constType {
  KEY = '123456';
  //1.待办事件状态
  STATE = {
    DONE: 'done',
    UNDONE: 'undone',
    DELETE: 'recycle',
    CREATE: 'create',
    REDUCTION: 'reduction',
  };
  //2.表单类型状态
  FROMTYPE = {
    CREATE: 'create',
    UPDATE: 'update',
  };
  //3.定义创建空的todo模板
  TODONULL = {
    id: '',
    updatetime: [],
    content: '',
    state: this.STATE.UNDONE,
    start: '',
    deadline: '',
    collect: false,
  };
  //4.左边导航栏对应显示页面
  ISSHOW = {
    MY: 'my',
    UNDONE: 'undone',
    DONE: 'done',
    PAST: 'past',
    RECYCLE: 'recycle',
    COLLECT: 'collect',
    DATA: 'data',
  };
  //5.JWT配置属性 密钥,过期时间
  JWTCONFIG = {
    KEY: this.KEY,
    EXPIRES: 9999999999,
  };
  //6.开局加载数据蒙层时间
  LAYERTIME = 100;

  //7.左边导航栏对应内容文字
  TITLEVALUE = {
    MY: '全部',
    UNDONE: '待处理',
    DONE: '已处理',
    PAST: '已过期',
    RECYCLE: '回收站',
    COLLECT: '已收藏',
    DATA: '个人中心',
  };
  //8.测试数据,todos:TEST,放在localStorage里面用
  TEST =
    'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2RvcyI6Ilt7XCJpZFwiOjE2MDk3NDM3OTQ0ODMsXCJ1cGRhdGV0aW1lXCI6W3tcInVwZGF0ZXRpbWVcIjpcIjE2MDk3NDM3Mjg4OTVcIixcInVwZGF0ZXN0YXRlXCI6XCJjcmVhdGVcIn1dLFwiY29udGVudFwiOlwiMS005Y-36L-H5pyfXCIsXCJzdGF0ZVwiOlwidW5kb25lXCIsXCJzdGFydFwiOjE2MDk3NDM3MjU3NzAsXCJkZWFkbGluZVwiOjE2MDk3NzU5OTk5OTl9LHtcImlkXCI6MTYwOTc0MzUyODkxOSxcInVwZGF0ZXRpbWVcIjpbe1widXBkYXRldGltZVwiOlwiMTYwOTc0MzUyOTA0MFwiLFwidXBkYXRlc3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WVcIjpcIjE2MDg3NzQxMTIyMTRcIixcInVwZGF0ZXN0YXRlXCI6XCJjcmVhdGVcIn1dLFwiaWRcIjpcIjE2MDg3NzgzOTM3MTNcIn1dIiwiaWF0IjoxNjA5NzQzNzUyLCJleHAiOjExNjA5NzQzNzUxfQ.ug31i1o2ssBvZudngDNXv4sWn4vmnmz8_UZvuss_LQI';

  //9.登录页面使用的常量
  LOGINDATA = {
    KEY: this.KEY,
    BASEPATH: ' http://localhost:53000/users',
    SUCCESS: 1,
    //默认登录用户
    USER: { username: '陈晓', password: '1202' },
    //用户过期时间设置,单位毫秒
    TIME: 36000,
  };
  BASEURL = 'http://localhost:8000';
}

const consts = new CONST();

export default consts;
